const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:'warning',//保存时自动检查, 但只是显示警告, 界面正常运行显示
  devServer:{
    open:true,//自动打开浏览器
    host:'localhost',
    port:9999,
    proxy:{
      '/dev-api':{
        target: 'https://api.github.com',//目标接口地址
        changeOrigin:true,
        pathRewrite:{//去掉/dev-api
          '^/dev-api':''
        }
      },
    }
  }
})
